home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gdevfax.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.4 KB  |  67 lines

  1. /* Copyright (C) 2000 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gdevfax.h,v 1.2 2000/09/19 19:00:13 lpd Exp $ */
  20. /* Definitions and interface for fax devices */
  21.  
  22. #ifndef gdevfax_INCLUDED
  23. #  define gdevfax_INCLUDED
  24.  
  25. /* Define the default device parameters. */
  26. #define X_DPI 204
  27. #define Y_DPI 196
  28.  
  29. /* Define the structure for fax devices. */
  30. /* Precede this by gx_device_common and gx_prn_device_common. */
  31. #define gx_fax_device_common\
  32.     int AdjustWidth        /* 0 = no adjust, 1 = adjust to fax values */
  33. typedef struct gx_device_fax_s {
  34.     gx_device_common;
  35.     gx_prn_device_common;
  36.     gx_fax_device_common;
  37. } gx_device_fax;
  38.  
  39. #define FAX_DEVICE_BODY(dtype, procs, dname, print_page)\
  40.     prn_device_std_body(dtype, procs, dname,\
  41.             DEFAULT_WIDTH_10THS, DEFAULT_HEIGHT_10THS,\
  42.             X_DPI, Y_DPI,\
  43.             0, 0, 0, 0,    /* margins */\
  44.             1, print_page),\
  45.     1                /* AdjustWidth */
  46.  
  47. /* Procedures defined in gdevfax.c */
  48.  
  49. /* Driver procedures */
  50. dev_proc_open_device(gdev_fax_open);
  51. dev_proc_get_params(gdev_fax_get_params); /* adds AdjustWidth */
  52. dev_proc_put_params(gdev_fax_put_params); /* adds AdjustWidth */
  53. extern const gx_device_procs gdev_fax_std_procs;
  54.  
  55. /* Other procedures */
  56. void gdev_fax_init_state(P2(stream_CFE_state *ss, const gx_device_fax *fdev));
  57. void gdev_fax_init_fax_state(P2(stream_CFE_state *ss,
  58.                 const gx_device_fax *fdev));
  59. int gdev_fax_print_strip(P7(gx_device_printer * pdev, FILE * prn_stream,
  60.                 const stream_template * temp, stream_state * ss,
  61.                 int width, int row_first,
  62.                 int row_end /* last + 1 */));
  63. int gdev_fax_print_page(P3(gx_device_printer *pdev, FILE *prn_stream,
  64.                stream_CFE_state *ss));
  65.  
  66. #endif /* gdevfax_INCLUDED */
  67.